Skip to content

Config entry options#18929

Merged
Kane610 merged 48 commits into
home-assistant:devfrom
Kane610:config-entry-options
Feb 22, 2019
Merged

Config entry options#18929
Kane610 merged 48 commits into
home-assistant:devfrom
Kane610:config-entry-options

Conversation

@Kane610
Copy link
Copy Markdown
Member

@Kane610 Kane610 commented Dec 2, 2018

Description:

Options support for configuration entries.

Uses same data entry flow as config entries.

How to identify if a configuration entry supports options flow:
A static method in config flow class called "async_get_options_flow" returns options flow handler.

Finalizing options flow triggers an update to configuration entry that will also trigger update listeners.

Pull request in developers.home-assistant.io with documentation: home-assistant/developers.home-assistant#185

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.

If user exposed functionality or configuration variables are added/changed:

If the code does not interact with devices:

  • Tests have been added to verify that the new code works.

Comment thread homeassistant/config_entries.py Outdated
Comment thread homeassistant/components/deconz/config_flow.py Outdated
Comment thread homeassistant/components/deconz/config_flow.py Outdated
Comment thread homeassistant/config_entries.py Outdated
Comment thread homeassistant/config_entries.py Outdated
@Kane610 Kane610 force-pushed the config-entry-options branch from 02553f6 to 05ce9ee Compare January 16, 2019 18:14
@Kane610 Kane610 force-pushed the config-entry-options branch from 3394cf5 to 32dade2 Compare February 1, 2019 17:30
Comment thread homeassistant/components/config/config_entries.py Outdated
Comment thread homeassistant/components/config/config_entries.py Outdated
Comment thread homeassistant/components/config/config_entries.py Outdated
Comment thread homeassistant/components/deconz/__init__.py Outdated
Comment thread homeassistant/components/deconz/config_flow.py Outdated
Comment thread homeassistant/components/deconz/config_flow.py Outdated
Comment thread homeassistant/config_entries.py Outdated
Comment thread homeassistant/config_entries.py Outdated
Comment thread homeassistant/config_entries.py Outdated
Comment thread tests/test_config_entries.py Outdated
Comment thread tests/test_config_entries.py Outdated
Comment thread homeassistant/config_entries.py Outdated
Comment thread tests/components/config/test_config_entries.py Outdated
Comment thread tests/components/config/test_config_entries.py Outdated
Comment thread tests/components/config/test_config_entries.py Outdated
Comment thread homeassistant/components/config/config_entries.py Outdated
Comment thread tests/components/config/test_config_entries.py Outdated
Comment thread homeassistant/components/deconz/__init__.py Outdated
@Kane610 Kane610 changed the title WIP - Config entry options Config entry options Feb 13, 2019
@Kane610
Copy link
Copy Markdown
Member Author

Kane610 commented Feb 13, 2019

@balloob @MartinHjelmare I'd say this is ready for a proper bashing 👍

Comment thread homeassistant/config_entries.py Outdated
Comment thread homeassistant/config_entries.py Outdated
Comment thread homeassistant/config_entries.py
Comment thread homeassistant/components/config/config_entries.py Outdated
Comment thread homeassistant/config_entries.py Outdated
Comment thread homeassistant/config_entries.py Outdated
Comment thread homeassistant/config_entries.py Outdated
Comment thread tests/components/config/test_config_entries.py Outdated
Copy link
Copy Markdown
Member

@balloob balloob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that it looks great ! 🎉 Few tiny comments left.

@MartinHjelmare
Copy link
Copy Markdown
Member

See #18929 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants